package com.WISSC.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 赛事个人信息表
 * </p>
 *
 * @author 张凯
 * @since 2019-05-06
 */
@ApiModel(value="IndividualEvent对象", description="赛事个人信息表")
public class IndividualEvent extends Model<IndividualEvent> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "身份证号")
    @TableField("id_number")
    private String idNumber;

    @ApiModelProperty(value = "性别 1男 2女")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value = "出生日期")
    @TableField("birth")
    private Long birth;

    @ApiModelProperty(value = "地区")
    @TableField("city")
    private String city;

    @ApiModelProperty(value = "所属战队")
    @TableField("combat")
    private String combat;

    @ApiModelProperty(value = "赛龄")
    @TableField("race_age")
    private String raceAge;

    @ApiModelProperty(value = "个人照片")
    @TableField("url")
    private String url;

    @ApiModelProperty(value = "类型")
    @TableField("type" )
    private Integer type;

    @ApiModelProperty(value = "是否参加过城市排名")
    @TableField("city_ranking")
    private Integer cityRanking;

    @ApiModelProperty(value = "是否参加省份排名")
    @TableField("province_ranking")
    private Integer provinceRanking;

    @ApiModelProperty(value = "是否参加国家排名")
    @TableField("national_ranking")
    private Integer nationalRanking;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "修改前的id")
    @TableField("before_id")
    private Long beforeId;
    // 赛事名称
    @TableField(exist = false)
    private String matchName;

    // 赛事日期
    @TableField(exist = false)
    private Long matchTime;

    // 赛事名次
    @TableField(exist = false)
    private Integer ranking;

    @TableField(exist = false)
    private Integer integral;

    @TableField(exist = false)
    private Integer row;

    //资格证书
    @TableField(exist = false)
    private Integer occ;

    @TableField(exist = false)
    private Integer sumIntegral;

    //次表id
    @TableField(exist = false)
    private Long indId;

    @ApiModelProperty(value = "1.新增 2.修改 3删除 4当前最新数据")
    @TableField("flag" )
    private Integer flag;


    // 总积分
    @TableField(exist = false)
    private Integer c;

    public Long getBeforeId() {
        return beforeId;
    }

    public void setBeforeId(Long beforeId) {
        this.beforeId = beforeId;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Long getIndId() {
        return indId;
    }

    public void setIndId(Long indId) {
        this.indId = indId;
    }

    public Integer getSumIntegral() {
        return sumIntegral;
    }

    public void setSumIntegral(Integer sumIntegral) {
        this.sumIntegral = sumIntegral;
    }

    public Integer getOcc() {
        return occ;
    }

    public void setOcc(Integer occ) {
        this.occ = occ;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getRow() {
        return row;
    }

    public void setRow(Integer row) {
        this.row = row;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Long getBirth() {
        return birth;
    }

    public void setBirth(Long birth) {
        this.birth = birth;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCombat() {
        return combat;
    }

    public void setCombat(String combat) {
        this.combat = combat;
    }

    public String getRaceAge() {
        return raceAge;
    }

    public void setRaceAge(String raceAge) {
        this.raceAge = raceAge;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getCityRanking() {
        return cityRanking;
    }

    public void setCityRanking(Integer cityRanking) {
        this.cityRanking = cityRanking;
    }

    public Integer getProvinceRanking() {
        return provinceRanking;
    }

    public void setProvinceRanking(Integer provinceRanking) {
        this.provinceRanking = provinceRanking;
    }

    public Integer getNationalRanking() {
        return nationalRanking;
    }

    public void setNationalRanking(Integer nationalRanking) {
        this.nationalRanking = nationalRanking;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getMatchName() {
        return matchName;
    }

    public void setMatchName(String matchName) {
        this.matchName = matchName;
    }

    public Long getMatchTime() {
        return matchTime;
    }

    public void setMatchTime(Long matchTime) {
        this.matchTime = matchTime;
    }

    public Integer getRanking() {
        return ranking;
    }

    public void setRanking(Integer ranking) {
        this.ranking = ranking;
    }

    public Integer getC() {
        return c;
    }

    public void setC(Integer c) {
        this.c = c;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "IndividualEvent{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", idNumber='" + idNumber + '\'' +
                ", sex=" + sex +
                ", birth=" + birth +
                ", city='" + city + '\'' +
                ", combat='" + combat + '\'' +
                ", raceAge='" + raceAge + '\'' +
                ", url='" + url + '\'' +
                ", type=" + type +
                ", cityRanking=" + cityRanking +
                ", provinceRanking=" + provinceRanking +
                ", nationalRanking=" + nationalRanking +
                ", createTime=" + createTime +
                ", matchName='" + matchName + '\'' +
                ", matchTime=" + matchTime +
                ", ranking=" + ranking +
                ", integral=" + integral +
                ", row=" + row +
                ", occ=" + occ +
                ", sumIntegral=" + sumIntegral +
                ", indId=" + indId +
                ", flag=" + flag +
                ", c=" + c +
                '}';
    }
}
